package de.koller.planet2D.container;

import de.koller.oceanFramework.OceanException;
import de.koller.oceanFramework.tree.Child;
import de.koller.planet2D.PNode;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.imageio.ImageIO;

public class RenderContainer extends PNode {
	
	public final BufferedImage textur;

	public RenderContainer() {
		try {
			this.textur = ImageIO.read( new File( "./design/texture.png" ) );
		} catch( IOException ex ) {
			throw new OceanException( ex );
		}
	}
	
	@Child public final FrameClip frameClip = new FrameClip();
	public Set<RenderObj> renderObjects = Collections.synchronizedSet( new HashSet<RenderObj>() );
	
}
